@extends('layout')

@section('title', '购物优惠券')

@section('content')
<body id="fffs">
<div class="mainContent">
    <div class="tab">
        <a href="{{route('coupon.index')}}"
           class="{{ Request::path() == 'coupon' ? 'current' : '' }}"
        >全部国家</a>
        @foreach($countries as $country)
            <a href="{{route('coupon.country', $country->id)}}"
               class="{{ Request::path() == 'coupon_country/'.$country->id ? 'current' : '' }}"
            >{{$country->title}}</a>
        @endforeach
    </div>
    <div class="contents">
        @foreach($coupons as $c)
            <a href="{{route('coupon.show', $c->id)}}"><img src="{{config('app.url').'/uploads/'.$c->picture}}" class="_img_w100" /></a>
        @endforeach
    </div>
</div>
</body>

@endsection